package company.permissionsystem.model.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class SysUser implements Serializable {

	private long id;
	private String username;
	private String password;
	private String phone;
	private String idCart;
	private Boolean status;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;
	private Integer departmentId;
	private Integer positionId;

	private Position position;
	private Department department;

}
